package com.noodles.mall.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.noodles.mall.entity.Item;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ItemMapper extends BaseMapper<Item> {
    /**
     * 查询商品列表
     * @param page
     * @param wrapper
     * @return
     */
    Page<Item> selectWithWrapper(@Param("page") Page<Item> page,
                              @Param(Constants.WRAPPER) Wrapper wrapper);
}
